package com.gscitysfy.cus.drain.modules.command.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cus.drain.modules.command.dto.ReservePlanManageDto;
import com.gscitysfy.cus.drain.modules.command.entity.ReservePlanManage;
import com.gscitysfy.cus.drain.modules.command.vo.ReservePlanManageQuery;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Administrator
 * @since 2022-10-22 11:21:35
 */
public interface IReservePlanManageService extends IService<ReservePlanManage> {
    /**
     * 条件分页
     *
     * @param page
     * @param query
     * @return
     */
    IPage<ReservePlanManageDto> fetchPage(Page page, ReservePlanManageQuery query);

    /**
     * 获取详情
     *
     * @param cmKid
     * @return
     */
    ReservePlanManageDto fetchById(Long cmKid);

    /**
     * 新增或修改
     *
     * @param dto
     * @return
     */
    Boolean saveOrUpdate(ReservePlanManageDto dto);

    /**
     * 删除
     *
     * @param idList
     * @return
     */
    Boolean delete(List<Long> idList);

    /**
     * 启用
     *
     * @param cmKid
     * @return
     */
    Boolean enable(Long cmKid);
}
